// ⚠️ 注意类型冲突
import type { UploadData } from "@/types/common"
import { request } from "@/utils/reuqest"

/**
 * 上传接口
 * @param fd 二进制文件数据(FormData)
 * @returns 
 */
export const uploadAPI = (fd: FormData) => {
  return request<UploadData>('/upload', 'POST', fd)
}